/**
 * Created with IntelliJ IDEA.
 * User: yanshiyi
 * Date: 13-11-25
 * Time: 下午8:41
 * To change this template use File | Settings | File Templates.
 */
package main

import (
	"fmt"
	"expression"
)

func main() {
	var expr = "6 88 9 10 - + * 10 *"
	result := expression.EvaluatePostfix(expr)
	fmt.Println(result)

	expr = "1 + ( 3 * 4 ) - 10 * (100 / 1000)"
	fmt.Println("--", expression.TranslateInfix2postfix(expr))

}
